package com.dunqi.gpm.cangxi.develop.bean;

import java.io.Serializable;

/**
 * Created by 空 on 2017/12/11 0011.
 */

public class ProjectNews implements Serializable{

    private Long proPlanProgressId;//进展汇报id,仅当objectType为2、msgType为2时有值,其余为null
    private Byte objectType;//数据对象类型 1:批示留言回复信息  2:点赞信息  3:项目动态
    private Long objectId;/*objectType=1,批示留言回复id,project_instruction.project_instruction_id;
                            objectType=2,点赞id,project_admire.pro_admire_id
                            objectType=3,项目动态id,project_work_trend.pro_work_trend_id
                            */
    private String createTime;//消息产生时间
    private String msgType;/*消息类型,按objectType不同而不同
                            objectType=1时,msgType对应表字段project_instruction.msg_type
                            objectType=2时,msgType对应表字段project_admire.admire_type
                            objectType=3时,msgType对应表字段project_work_trend.trend_type
                            */
    private String msgTypeText;//消息类型中文描述
    private String title;//消息标题
    private String detail;/*消息详情,当objectType=3时(为其它值直接显示detail),此字段为链接,需要进一步获取信息,分两种情况:
                            1.project_work_trend.trend_type为区长外部链接和书记外部链接时,detail内容为完整的可直接访问超链接
                            2.project_work_trend.trend_type为其它值时,detail为本系统的分布式系统链接,需拼接服务器地址,访问目标为html文件
                           */
    private Integer ord;//排序字段,显示不做处理
    Long projectId;//项目id,当objectType为3时可能为null
    Long mainObjectId;

    public Long getMainObjectId() {
        return mainObjectId;
    }

    public void setMainObjectId(Long mainObjectId) {
        this.mainObjectId = mainObjectId;
    }


    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getProPlanProgressId() {
        return proPlanProgressId;
    }

    public void setProPlanProgressId(Long proPlanProgressId) {
        this.proPlanProgressId = proPlanProgressId;
    }

    public Byte getObjectType() {
        return objectType;
    }

    public void setObjectType(Byte objectType) {
        this.objectType = objectType;
    }

    public Long getObjectId() {
        return objectId;
    }

    public void setObjectId(Long objectId) {
        this.objectId = objectId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getMsgTypeText() {
        return msgTypeText;
    }

    public void setMsgTypeText(String msgTypeText) {
        this.msgTypeText = msgTypeText;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Integer getOrd() {
        return ord;
    }

    public void setOrd(Integer ord) {
        this.ord = ord;
    }
}
